import { useAxios } from "./composables/useAxios.ts"
import BeanBigUser from "../bean/user/BeanBigUser.ts"
import { ApiResponse } from "../types/api.ts"
import BeanLoginRequest from "../bean/user/BeanLoginRequest.ts"

export function getUserInfoByToken(beanLoginRequest: BeanLoginRequest) {
  return useAxios<ApiResponse<BeanBigUser>>({
    url: "cmConfig/list", // 这里统一管理接口地址
    data: beanLoginRequest,
  })
}
